﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppManagment/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="EmplList.aspx.cs" Inherits="EmplList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<table style="width: 100%;">
    <tr>
        <td style ="width :235px">
          Список сотрудников
        </td>
        <td>
        </td>
        
        <td style ="text-align :right ">        
        <asp:Button ID=btnnew runat="server" Text="Добавить" CssClass ="btn"  OnClick ="btnAdd_Click"  />
            
        </td>
    </tr>
    
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <asp:GridView Width ="100%" ID="grdEmployees" runat="server" AutoGenerateColumns="False">
        <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton CommandArgument =<%# (string)Eval("ID") %> ID=LinkButton1 OnClick ="LinkButton2_Click" runat="server" Text ="Редактировать"></asp:LinkButton>    
            </ItemTemplate>
        </asp:TemplateField>
            
            <asp:BoundField DataField="FirstName" />
            <asp:BoundField DataField="SecondName" />
        </Columns>
    </asp:GridView>
</asp:Content>

